<%--
  Created by IntelliJ IDEA.
  User: 王乐
  Date: 2018/7/10
  Time: 21:36
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>事故备案</title>
    <link rel="stylesheet" href="/static/js/plugins/jquery-easyui/themes/metro/easyui.css">
    <link rel="stylesheet" href="/static/js/plugins/jquery-easyui/themes/icon.css">
    <script src="/static/js/plugins/jquery-easyui/jquery.min.js"></script>
    <script src="/static/js/plugins/jquery-easyui/jquery.easyui.min.js"></script>
    <script src="/static/js/plugins/jquery-easyui/locale/easyui-lang-zh_CN.js"></script>
    <script type="text/javascript" src="/static/js/system/accident.js"></script>
</head>
<body>
<table id="accident_datagrid"></table>
<div id="tb">
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true" onclick="add()">添加</a>
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true" onclick="edit()">编辑</a>
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-remove',plain:true" onclick="remove()">删除</a>
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true" onclick="reload1()">刷新</a>
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-tip',plain:true" onclick="validate()">提交验证</a>
</div>
<div id="accident_tb">
    <input class="easyui-textbox" type="text" name="keyword" id="clientId" prompt="输入报案人查询"/>
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-search',plain:true" onclick="searchClient()">查询</a>
</div>
<div id="accident_dialog">
    <form id="accident_form" method="post">
        <input type="hidden" id="accidentId" name="id">
        <table style="padding: 20px;border-spacing: 10px;align-content: center;padding-left: 50px">
            <tr>
                <td>报案人姓名:</td>
                <td><input  id="client_grid" type="text" name="insuranceNo" data-options="required:true,editable:false"/></td>
            </tr>
            <tr>
                <td>报发生时间:</td>
                <td><input class="easyui-datebox" type="text" name="occurenceTime" data-options="required:true" /></td>
            </tr>
            <tr>
                <td>发生地点:</td>
                <td><input class="easyui-textbox" type="text" name="occurencePlace" data-options="required:true" /></td>
            </tr>
            <tr>
                <td>事故责任:</td>
                <td><input class="easyui-combobox" type="text" panelHeight="auto" name="responsibility" data-options="required:true,
                           valueField: 'name',textField: 'name',url:'dictionary/selectDictionarySingleBySn?sn=DUTY',editable:false"
                    /></td>
            </tr>
            <tr>
                <td>案情描述:</td>
                <td><input class="easyui-textbox" type="text" name="caseDescript" data-options="required:true" /></td>
            </tr>
            <tr>
                <td>备注:</td>
                <td><input class="easyui-textbox" type="text" name="note" /></td>
            </tr>
        </table>
    </form>
    <div id="bb">
        <a href="#" class="easyui-linkbutton" iconCls="icon-ok" onclick="save()">保存</a>
        <a href="#" class="easyui-linkbutton" iconCls="icon-cancel" onclick="closes()">关闭</a>
    </div>

</div>
</body>
</html>
